<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html">
    <h:head>
        <link href="../resources/css/style.css" rel="stylesheet" type="text/css" media="screen" />
        <title>Creer une nouvelle gamme de prix</title>
    </h:head>
    <h:body>
        <header>
           <div class="container"><a href="../resources/login.faces" class="login">Login</a>
              <nav>
                 <ul>
                    <li><a href="../default.htm" class="active"><span><span>Accueil</span></span></a></li>
                    <li><a href="../resources/listRestaurants.faces"><span><span>Restaurants A-Z</span></span></a></li>
                 </ul>
              </nav>
              <h1><a href="../default.htm">Restaurant review</a></h1>
              <div class="slogan"></div>
           </div>
        </header>
        <ul>
            <li><h:outputText value="Bienvenue #{securityController.connectedUserid}"/></li>
            <li><h:form><h:commandLink action="#{securityController.logout}" value="Se d&eacute;connecter"/></h:form></li>
        </ul>
        <hr/>
        <h1>Creer une nouvelle gamme de prix</h1>
        <hr/>
        <h:form>
            <h:panelGrid columns="3">
                <h:outputLabel value="Nom : "/>
                <h:inputText id="titre" value="#{prixController.prix.title}"/>
                <h:message for="titre"/>

                <h:outputLabel value="Description  : "/>
                <h:inputTextarea id="description" value="#{prixController.prix.description}" cols="20" rows="5"/>
                <h:message for="description"/>
            </h:panelGrid>

            <h:commandButton value="Creer une gamme de prix" action="#{prixController.doCreate}"/>

        </h:form>

        <h:form>
            <h:commandButton value="Annuler" action="../resources/listPrixs.faces"/>
        </h:form>
        <hr/>
    </h:body>
</html>
